package net.kingborn.erp.fc.dao;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.kingborn.erp.fc.model.FlowRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * 收支Dao
 */
@Component
public interface FlowRecordDao extends BaseMapper<FlowRecord> {

    Page<FlowRecord> queryPage(@Param("page") Page page, @Param("query") JSONObject query);

    ArrayList querySum();
}
